// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from "vue";
import App from "./App";
import router from "../src/router/router";
import axios from "axios";
import qs from "qs";
import store from "./store";
// import './assets/css/index.css'
// import './assets/css/reset.css'
// import Vuex from 'vuex'
// import store from './store/index.js'
import "lib-flexible";
// import './utils/rem.js'
// import 'vant/lib/index.css'
import Es6Promise from 'es6-promise'
import { Tab, Tabs, Form } from "vant";
import { Popup } from "vant";
import { Dialog } from "vant";
import { Card } from "vant";
import { ContactCard, ContactList, ContactEdit } from "vant";
import { Collapse, CollapseItem } from "vant";
import { Overlay } from "vant";
import { Button } from "vant";
import { Field } from "vant";
import { Notify } from "vant";
import { Toast } from 'vant';
import { Icon } from "vant";
import { Loading } from "vant";
import { List } from "vant";
import { PullRefresh } from "vant";
import { Pagination } from "vant";
import { DropdownMenu, DropdownItem } from "vant";
import { TreeSelect } from "vant";
import { Picker } from "vant";
import { ActionSheet } from 'vant';
import { Progress } from 'vant';
import goodsAdd from './config/goodsAdd'
import setPrice from './config/setPrice'
import { CountDown } from 'vant';
import { Cell } from 'vant';
import { Sticky } from 'vant';
import * as echarts from 'echarts';
import wx from 'weixin-js-sdk' //引入jdk

import "vant/lib/index.css";
Es6Promise.polyfill()
require('es6-promise').polyfill()
// 无限滚动
// import scroll from 'vue-seamless-scroll'
import { Swipe, SwipeItem} from "vant";
// Vue.use(scroll)
Vue.use(CountDown);
Vue.use(Sticky);
Vue.use(Progress);
Vue.use(Picker);
Vue.use(Overlay);
Vue.use(Icon);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(ContactCard);
Vue.use(ContactList);
Vue.use(ContactEdit);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Popup);
Vue.use(Card);
Vue.use(Button);
Vue.use(Notify);
Vue.use(Dialog);
Vue.use(Field);
Vue.use(Toast);
Vue.use(Loading);
Vue.use(List);
Vue.use(ActionSheet);
Vue.use(PullRefresh);
Vue.use(Pagination);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(TreeSelect);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Picker);
Vue.use(Cell);
Vue.prototype.$axios = axios;
Vue.config.productionTip = false;
// 数量加减
Vue.prototype.goodsAdd=goodsAdd
//价格判定
Vue.prototype.setPrice=setPrice
Vue.prototype.echarts = echarts;

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
